//
//  SliderPageControl.h
//  116114
//
//  Created by 潘超 on 13-7-23.
//  Copyright (c) 2013年 Raiyi. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SliderPageControlDelegate
@optional
- (NSString *)sliderPageController:(id)controller hintTitleForPage:(NSInteger)page;
- (BOOL)respondsToSelector:(SEL)aSelector;
@end


@interface SliderPageControl : UIControl {
	UIImageView *backgroundView;
	int numberOfPages;
	int currentPage;
	UIImageView *slider;
	CGPoint beganPoint;
	BOOL hasDragged;
	UIView *maskView;
	UILabel *hintLabel;
	id<SliderPageControlDelegate> delegate;
	BOOL showsHint;
}

@property (nonatomic, retain) id<SliderPageControlDelegate> delegate;
@property (nonatomic, assign) BOOL showsHint;
@property (nonatomic, retain) UIImageView *backgroundView;
@property (nonatomic, retain) UIImageView *slider;
@property (nonatomic) int numberOfPages;
@property (nonatomic) int currentPage;
- (id)initWithFrame:(CGRect)frame setBackgroud:(UIColor *) bgColor setpointColor:(UIColor *) pointColor;
- (void)setNumberOfPages:(int)page;
- (int)currentPage;
- (void)setCurrentPage:(int)_currentPage animated:(BOOL)animated;

@end
